// import { postRequest, getRequest } from "@/utils/request";
import { getRequest1, postRequest1 } from "@/utils/request1";

// import permissionsData from "@/assets/json/permissions.json";
// 获取商户基本信息

//更新商户信息
export const merchantUpdateApi = (data) => {
  return postRequest1("/api/v2/cms/merchant/update", data);
};

//获取登录用户权限code
export const permissionsUserApi = (data) => {
  return getRequest1("/api/v2/cms/permissions/user", data);
};

// ============================ 加密接口 ================================
// 获取商户基本信息
export const GetNewMerchantInfo = () => {
  return getRequest1("/api/mer/info");
};
